Skip to content

Conversation

@afd
Copy link
Contributor

@afd afd commented Nov 15, 2020

The script now works for spirv-opt and LLPC, and has the option to
output just numbers of unique signatures, which is useful for
gathering statistics to put in a spreadsheet.

The script now works for spirv-opt and LLPC, and has the option to
output just numbers of unique signatures, which is useful for
gathering statistics to put in a spreadsheet.
Copy link
Collaborator

@paulthomson paulthomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, with a suggestion for the TODO.

Comment on lines +58 to +59
start_line = i + 1
# TODO: Is there a reliable way to find the end of a spirv-opt failure?
Copy link
Collaborator

@paulthomson paulthomson Nov 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe:

  • Don't break once a bug is found (for the cases you added).
  • if found_bug, do something different:
    • Just look for "Exec (verbose): ..." to find the next "reduce" command, set the end line based on this and then break.
    • if we find "gfauto_interestingness_test: finished ..." then the output above this is actually the output from part of a reduction, so something has gone wrong.
    • if we don't find anything else and get to the end of the file, this is also fine. It just means we did not do a reduction and the file immediately ends after the "Command failed:" output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants